#ifndef _MEM_CHUNK_H_
#define _MEM_CHUNK_H_

#include <stdint.h>
#include <sys/types.h>

typedef struct z_mem_chunk z_mem_chunk;
z_mem_chunk* z_mem_chunk_new (uint32_t atom_size, uint32_t area_size) __attribute__((nonnull));
void *z_mem_chunk_alloc (z_mem_chunk *mem_chunk);
void *z_mem_chunk_alloc0 (z_mem_chunk *mem_chunk);
void z_mem_chunk_destroy (z_mem_chunk *mem_chunk);
size_t z_mem_chunk_size (z_mem_chunk *mem_chunk);  

#endif /* _MEM_CHUNK_H_ */
